package com.example.merchant.entity;

/**
 * 客户实体类
 */
public class Customer extends User {
    /*
    客户属性
     */
    private Integer phone;//顾客联系方式
    private Integer height;//身高
    private String nationality;//国籍
    private String figure;//身材
    private String appearance;//样貌


    public Customer(Integer id, String name, String sex, Integer age, Double money, Integer phone, Integer height, String nationality, String figure, String appearance) {
        super(id, name, sex, age, money);
        this.phone = phone;
        this.height = height;
        this.nationality = nationality;
        this.figure = figure;
        this.appearance = appearance;
    }

    public Customer() {
    }

    public void setPhone(Integer phone) {
        this.phone = phone;
    }

    public Integer getPhone() {
        return phone;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Integer getHeight() {
        return height;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }

    public String getNationality() {
        return nationality;
    }

    public void setFigure(String figure) {
        this.figure = figure;
    }

    public String getFigure() {
        return figure;
    }

    public void setAppearance(String appearance) {
        this.appearance = appearance;
    }

    public String getAppearance() {
        return appearance;
    }

//    public String toString() {
//        return "顾客：" + getName() + "\t" + "钱包：" + getMoney() + "\t" + "性别" + getSex() + "\t" + "年龄" + getAge();
//    }

    @Override
    public String toString() {
        return "Customer{" +
                "姓名"+getName()+
                "phone=" + phone +
                ", 钱包=" + getMoney() +
                ", 年龄=" + getAge() + '\'' +
                ", 性别='" + getSex() + '\'' +
                '}';
    }
}
